import request from '@/utils/requset'

export const getCategoryFilterService = (id: string) => {
  return request.get('/category/sub/filter', {
    params: {
      id
    }
  })
}
/**
 * @description: 获取导航数据
 * @data { 
     categoryId: 1005000 ,
     page: 1,
     pageSize: 20,
     sortField: 'publishTime' | 'orderNum' | 'evaluateNum'
   } 
 * @return {*}
 */
export const getSubCategoryService = (data: object) => {
  return request.post('/category/goods/temporary', data)
}
